<!-- src/views/PaySuccess.vue -->
<template>
  <div class="pay-success">
    <el-result
        icon="success"
        title="支付成功"
        sub-title="您的搬家服务订单已完成支付"
    >
      <template #extra>
        <el-button type="primary" @click="goHome">返回首页</el-button>
        <el-button @click="viewOrder">查看订单</el-button>
      </template>
    </el-result>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/user/user_team')
}

const viewOrder = () => {
  router.push('/user/order')
}
</script>

<style scoped>
.pay-success {
  padding: 40px;
  text-align: center;
}
</style>